import request from '@/utils/request'

// 查询还款减免配置列表
export function listReduceConfig(query) {
    return request({
        url: '/bizsys/reduceConfig/list',
        method: 'get',
        params: query
    })
}

// 查询还款减免配置详细
export function getReduceConfig(id) {
    return request({
        url: '/bizsys/reduceConfig/' + id,
        method: 'get'
    })
}

// 新增还款减免配置
export function addReduceConfig(data) {
    return request({
        url: '/bizsys/reduceConfig',
        method: 'post',
        data: data
    })
}

// 修改还款减免配置
export function updateReduceConfig(data) {
    return request({
        url: '/bizsys/reduceConfig',
        method: 'put',
        data: data
    })
}

// 删除还款减免配置
export function delReduceConfig(id) {
    return request({
        url: '/bizsys/reduceConfig/' + id,
        method: 'delete'
    })
}

// 导出还款减免配置
export function exportReduceConfig(query) {
    return request({
        url: '/bizsys/reduceConfig/export',
        method: 'get',
        params: query
    })
}